{% extends "lbforum/base.html" %}

{% load i18n %}
{% load lbforum %}

{% block title %}{{  block.super }}{% endblock %}

{% block content %}
	<div id="actionbox">
	</div>  

	<div id="brd-wrap" class="brd">
		<div id="brd-viewforum" class="brd-page paged-page">
			{% include 'lbforum/inc_header.html' %}
			{% include 'lbforum/inc_announce.html' %}

			<div class="hr"><hr /></div>

			<div class="crumbs gen-content" id="brd-crumbs-top">
                {% include 'lbforum/inc_forum_brd_crumbs.html' %}
			</div>

			<!-- brd-main begin -->
<div id="brd-main">
	<div class="main-pagepost gen-content" id="brd-pagepost-top">
	<!--  
		{ % load update_pagination_tags % }
		{ % updatepaginate forum Topic 1 % }
		{ % update_paginate % }
	-->
	
	<div class="pagination">
    {% if page.has_previous %}
       
        
        <!--   <a href="?page class="prev">&lsaquo;&lsaquo; {% trans "previous" %}</a>-->
        <a href="{{forum.get_absolute_url}}"> {% trans "Home" %}</a>
    <a href="javascript:history.back();"> {% trans "previous" %} </a>
    {% else %}
    <a href="">{% trans "refresh" %}</a>
    {% endif %}

    {% if page.has_next %}
        <!--  <a href="?page=" class="next">{% trans "next" %} &rsaquo;&rsaquo;</a>-->
        <a href="?s={{guard.last_reply_on}}">{% trans "next" %} &rsaquo;&rsaquo;</a>
    	
    {% endif %}
</div>

        <p class="posting">
            {% if user.is_authenticated %}
                <a class="newpost" href="{% url lbforum_new_topic forum.slug %}"><span>  {% trans "Post" %}{% trans "new" %}{% trans "Topics" %} </span></a>
            {% else %}
                {% trans "You must" %} <a href="{% url auth_login %}">{% trans "Login" %}</a> {% trans "or" %} <a href="{% url registration_register %}">{% trans "register" %}</a> {% trans "to post a topic"%}
            {% endif %} 
        </p>
	</div>
	<div class="main-head">
        <h1 class="hn"><span><a title="Permanent link to this forum." rel="bookmark" href="{% url lbforum_forum forum.slug %}" class="permalink">{{ forum }}</a> <small></small></span></h1>
	</div>

    {% include 'lbforum/inc_topic_list.html' %}


    <div class="main-options gen-content">
        <p class="options"></p>
    </div>

	<div class="main-pagepost gen-content" id="brd-pagepost-end">
        <!--  { % update_paginate % } -->	
		<p class="posting">
            {% if user.is_authenticated %}
                <a class="newpost" href="{% url lbforum_new_topic forum.slug%}"><span>{% trans "Post" %}{% trans "new" %}{% trans "Topics" %}</span></a>
            {% else %}
                {% trans "You must" %} <a href="{% url auth_login %}">{% trans "Login" %}</a> {% trans "or" %} <a href="{% url registration_register %}">{% trans "register" %}</a> {% trans "to post a topic" %}
            {% endif %} 
        </p>
	</div>

</div>
<!-- brd-main ends -->

<div class="crumbs gen-content" id="brd-crumbs-end">
    {% include 'lbforum/inc_forum_brd_crumbs.html' %}
</div>

<div class="hr"><hr /></div>

{% include 'lbforum/inc_copyright.html' %}

  </div>
</div>
{% endblock %}
